#start_ovs.sh && start_ovn_controller.sh
/usr/share/openvswitch/scripts/ovs-ctl start --system-id=random
/usr/share/ovn/scripts/ovn-ctl  start_controller

#/root/ovn_lab/create_topo_computer.sh
OVN_SERVER=192.168.10.88
MY_IP=192.168.10.100
function add_vm2(){
ovs-vsctl add-port br-int vm2 -- set interface vm2 type=internal
ovs-vsctl set Interface vm2 external_ids:iface-id=ls2-vm2
ip link set vm2 netns ns1
ip netns exec ns1 ifconfig vm2 10.1.0.20/24 up
ip netns exec ns1 ip link set vm2 address 02:ac:10:ff:01:31
}
ovs-vsctl add-br br-int -- set Bridge br-int fail-mode=secure
ovs-vsctl set open . external-ids:ovn-remote=tcp:$OVN_SERVER:6642
ovs-vsctl set open . external-ids:ovn-encap-type=geneve
ovs-vsctl set open . external-ids:ovn-encap-ip=$MY_IP

/usr/share/ovn/scripts/ovn-ctl stop_controller
/usr/share/ovn/scripts/ovn-ctl start_controller

add_vm2



